array mathematics hackerrank solution

visit shbcf.ru